package com.ruanyun.modular.admin.service;

import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruanyun.base.pojo.page.LayuiPageInfo;
import com.ruanyun.modular.admin.entity.VocReducingPlan;
import com.ruanyun.modular.admin.model.params.VocReducingPlanParam;
import com.ruanyun.modular.admin.model.result.ReduceResult;
import com.ruanyun.modular.admin.model.result.VocReducingPlanResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * VOCs综合减排措施 服务类
 * </p>
 *
 * @author zs
 * @since 2021-04-19
 */
public interface VocReducingPlanService extends IService<VocReducingPlan> {

    /**
     * 新增
     *
     * @author zs
     * @Date 2021-04-19
     */
    ResponseData add(VocReducingPlanParam param);

    /**
     * 删除
     *
     * @author zs
     * @Date 2021-04-19
     */
    void delete(VocReducingPlanParam param);

    /**
    * 删除
    * @param id
    * @return
    */
    ResponseData updateDelFlagById(Long id);

    /**
     * 更新
     *
     * @author zs
     * @Date 2021-04-19
     */
    ResponseData update(VocReducingPlanParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zs
     * @Date 2021-04-19
     */
    VocReducingPlanResult findBySpec(VocReducingPlanParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zs
     * @Date 2021-04-19
     */
    List<VocReducingPlanResult> findListBySpec(VocReducingPlanParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zs
     * @Date 2021-04-19
     */
     LayuiPageInfo findPageBySpec(VocReducingPlanParam param);

     /**
     * 启用
     *
     * @param id
     * @return
     */
     ResponseData enableById(Long id);

     /**
     * 禁用
     *
     * @param id
     * @return
     */
     ResponseData disableById(Long id);


     List<VocReducingPlan> getList();


    Page<VocReducingPlanResult> getVocReducingPage();

    LayuiPageInfo sourceList(Integer redId,Integer redType);


    Integer getIdByCid(Integer cid);

}
